 |
 |
 |
 |
#249020 - 06/05/03 04:51 AM
[6.3] Facelift for UBB Threads
|
Junior Member
Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
|
NAME: Facelift for UBB Threads VERSION: 1.0.0 DESCRIPTION: A template set for Threads that eliminates some of the tbopen and tbclose table wrappers. The stock templates that come with Threads are "table heavy". This set will make your pages look cleaner, and they are even better if you are using table wrapper graphics. Completely redesigned for UBB Threads 6.3 You also get my No Dead Hyperlinks, Compact My Home Template, and Compact Extra Info template modifications in this set. You also get a dosearch template that looks similar to the UBB Classic "Latest Topics" ( Example ). What you do not get is the Compact Profile Template. There is a profile template included in this set, but it only has some basic changes in it to make it match the theme of this mod. WORKING UNDER: UBB.threads 6.3 PREREQUISITES: YASM 1.0 for the dosearch page. When you install YASM you only need to follow the instructions for editing your dosearch.php file (I've included the template that you need for YASM). AUTHORS: Dalantech CREDITS: JustDave for YASM. DEMO: Da Forum FILES ALTERED: Almost every file in the templates/default directory. DATABASE ALTERED: no NEW FILES: All included in the zip file attached to this post. HISTORY: 2003-June-05 Dalantech Initial release 2003-June-09 Modified showthreaded.tmpl (added a reply link for non registered users that takes them to the login page. Only visible if the forum is set to not allow registered users to post). 2003-June-11 Fixed minor bug in login.tmpl 2003-June-13 Fixed a major bug in the way locked threads are handled by the showflat.tmpl and showthreaded.tmpl files. Mad props to JoshPet for pointing out the error! 2003-June-18 Updated the ubbt_header.tmpl file to the release version. Also fixed viewreminders.tmpl. Props to JoshPet for finding these bugs as well (earning that "Mr. Bug" title  ) 2003-June-18 Fixed a bug in postlist.tmpl that only effects sites that use a fixed width (those sites using a percentage would not see the error). 2003-July-02 Fixed a bug in the showflat.tmpl and showthreaded.tmpl file. 2003-July-08 Fixed a bug in newpost.tmpl and newreply.tmpl -thanks Josh! 2003-July-11 Fixed a bug in the showflat.tmpl and showthreaded.tmpl files that prevented editing the pointers for moved posts. Instructions: Back up every file in your /templates/default directory (I've edited almost all of them for this mod). Edit your dosearch.php file as per the instructions in YASM 1.0. Then upload the templates (the .tmpl files) in the zip file attached to this post to your /templates/default directory.
Attachments
83018-facelift.zip (151 downloads)
Edited by Dalantech (08/28/03 12:54 AM)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#249069 - 07/19/03 02:10 PM
Re: [6.3] Facelift for UBB Threads
[Re: eslmix]
|
Journeyman
Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
|
DLT...Under the facelift, I just noticed that if I, as admin, go to edit a post by some other user, the edit form seems to have some things missing from the standard edit form. In particular, there is no check box to select whether or not to show as edited, and the box for checking whether or not to preview the edited version is to the RIGHT of the text area, rather than underneath.<br /><br />Of course, it is possible I have a corrupted file for this template. but I don't see how that would have happened, since I haven't touched it, and I still can't figure out what templates control most of the stuff, anyway.<br /><br />(Boy, it would sure help to have a guide to what templates control what on the various pages!!!!!)<br /><br />Anyway, I'd appreciate it if you, or someone else, could have a look at what happens if you try to edit someone else's post!<br /><br />Thanks - Tony <img src="/forum/images/graemlins/tongue.gif" alt="" />
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#249076 - 07/23/03 08:47 PM
Re: [6.3] Facelift for UBB Threads
[Re: Daine]
|
Journeyman
Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
|
thanks for the info, Josh, and - when I opened that template in the admin editor - I found what seems to be an elision (is that the right word?), as though two sections of code, one for the mark as edit and the other for preview, had been run together, with effectively a whole section missing. <br /> <br />Just to test, I added a line break after the section of code for the post box, because there was a little check box at the SIDE of the big box for the post, rather than under it. My change put the check box under the post box, with the text "I want to preview my modifications and add or edit an attachment." <br /> <br />But there IS no check box or text for selecting whether or not to mark the post as edited, and I think there should be! <br /> <br />What do you think? Tony <br /> <br />EDIT: I've stared at the template a bit more, and I think my remark about the elision is wrong. BUT the fact remains that the check box was to the right at the post box (which my line break fixed), AND there is no mark as edited option when I (as administrator) go to edit a user's post. (Would there be a difference if I went as moderator? For the case I tried, I'm both...) But the mark as edited option IS there if I (as admin) edit one of my own posts!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#249083 - 08/11/03 06:21 PM
Re: [6.3] Facelift for UBB Threads
[Re: eslmix]
|
Journeyman
Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
|
yes, that is the template I'm talking about.<br /><br />My board uses facelift, and I just noticed that at the bottom of the showflat page, there is some extraneous text that appears, outside any of the usual tables, and just before the footer. It reads:<br /><br />"Open = O Edit link ="<br /><br />This text is not there when I use the older showflat template, and appears (tto me)to be somehow associated with code added in the 7/11 showflat.tmpl, namely these two lines near the end:<br /><br />Open = $Open<br />Edit link = {$postrow[$i]['editlinkstart']}<br /><br />...which I presume have to do with the editing option Dal was adding.<br /><br />Any idea how these could lead to the extraneous text? If YOU are using the facelift, have you not noticed this text?<br /><br />Always possible, of course, that I have something ELSE wrong with my board, but thought I'd check about the obvious link between that text and these 2 lines of code.<br /><br />Thanks! Tony
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#249097 - 08/28/03 08:53 AM
Re: [6.3] Facelift for UBB Threads
[Re: Daine]
|
Junior Member
Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
|
When viewing the source this is what I see for post icons:<br /><br /><a href="https://www.theiconsortium.com/iBASE/showicons.php?Cat=" target="new">Post Icon</a><br /><br /><br /><br /><select name="Icon" class="formboxes"><br /><option value="blush.gif" >blush</option><br /><option value="chat.gif" >chat</option><br /><option value="cool.gif" >cool</option><br /><option value="crazy.gif" >crazy</option><br /><option value="exclamation.gif" >exclamation</option><br /><option value="disk.gif" >file</option><br /><option value="frown.gif" >frown</option><br /><option value="lightbulb.gif" >idea</option><br /><br /><option value="laugh.gif" >laugh</option><br /><option value="link.gif" >link</option><br /><option value="mad.gif" >mad</option><br /><option value="book.gif" selected="selected" checked="checked">note</option><br /><option value="poll.gif" >poll</option><br /><option value="question.gif" >question</option><br /><option value="ribbon.gif" >ribbon</option><br /><option value="shocked.gif" >shocked</option><br /><option value="smile.gif" >smile</option><br /><br /><option value="tongue.gif" >tongue</option><br /><option value="trophy.gif" >trophy</option><br /><option value="wink.gif" >wink</option><br /></select><br /><br /><br /><br />My custom icons aren't listed in there. When I edit a post that had a custom icon there is no way for me to keep that custom icon.<br /><br />These is the changes I made for Quick Reply:<br /><br />" $Icon = get_input(""Icon"",""post"");<br />// strip off the URL<br /> $Icon = basename($Icon);"<br /><br />Replacing: $Icon = get_input("Icon","post");<br /><br /><br />" $PStatus = get_input(""PStatus"",""post"");<br /> $dofav = get_input(""dofav"",""post"");<br /> $quickreply = get_input(""quickreply"",""post"");<br /> <br />// -----------------<br />// If it came from the quick reply form<br />// we need to grab the ParentUser number for the reply<br /> if (($quickreply) && (!$ParentUser)) {<br /> $query = ""<br /> SELECT B_PosterId<br /> FROM {$config['tbprefix']}Posts<br /> WHERE B_Number = $Parent<br /> ""; <br /> $sth = $dbh -> do_query($query);<br /> list($ParentUser) = $dbh -> fetch_array($sth); <br /> } "<br /><br />"Replacing:<br /> $PStatus = get_input(""PStatus"",""post"");<br /> $dofav = get_input(""dofav"",""post"");"<br /><br /><br /> if ( (preg_match("/^\s*$/",$Subject)) || ($Body == "") || ($Body == " ") || ($Body == " ") || ($postername == "") ) {<br /><br />"Replacing:<br /> if ( (preg_match(""/^\s*$/"",$Subject)) || ($Body == """") || ($postername == """") ) {"<br /><br /><br />This is the change for Instant subscription:<br /><br />"// Send an Email to the Subscribers if they are Subscribed to this board<br />if (($Approved == ""yes"") && ($config['subscriptions'] == 1))<br />{<br /> $query = ""<br /> SELECT U_Email,<br /> U_Language<br /> FROM {$config['tbprefix']}Users<br /> LEFT JOIN {$config['tbprefix']}Subscribe ON S_UID = U_Number<br /> WHERE S_UID = U_Number<br /> AND S_Board = '$Board_q'<br /> "";<br /><br /> $sth = $dbh -> do_query($query);<br /><br /> while ( list($Mailto,$Language) = $dbh -> fetch_array($sth) ) <br /> {<br /> // -------------------------------------------=<br /> // We need to make sure this user still exists<br /> if ($Mailto) {<br /><br /> // -----------------------------------------------------------------<br /> // Now if this user has a pre-selected language we use that language<br /> // for the message we send out<br /> if (!$Language) { $Language = $config['language']; }<br /> <br /> require ""{$config['path']}/languages/$Language/addpost.php"";<br /><br /> $EmailBody = $Body;<br /> if ($config['stripcodes']) { $EmailBody = preg_replace(""/<([^>])*>/"","""",$EmailBody); }<br /> $EmailBody = eregi_replace(""<br />"", ""\r\n"", $EmailBody);<br /><br /> $newline = ""\n"";<br /> if (stristr(PHP_OS,""win"")) { $newline = ""\r\n""; }<br /><br /> $to = $Mailto;<br /> $mailer = new mailer;<br /> $header = $mailer -> headers(); <br /> $subject = ""New Post To $Title from $postername"";<br /> $msg = ""$postername has posted a message to $Title: $newline{$config['phpurl']}/showthreaded.php?Cat=$Cat&Board=$Board&Number=$Mnumber$newline${newline}------Message Below------${newline}Subject: $FormSubject${newline}${newline}Message:$newline$EmailBody"";<br /><br /> mail(""$to"",""$subject"",$msg,$header);<br /><br /> // --------------------------------------------------<br /> // Now, we need to switch back to this users language<br /> $Language = $user['U_Language'];<br /> if (!$Language) { $Language = $config['language']; }<br /> require ""{$config['path']}/languages/$Language/addpost.php"";<br /> }<br /> }<br />}"<br /><br />"above:<br />// ---------------------------------------------<br />// Update the total post if the post is Approved"<br /><br /><br />Otherwise my addpost.php is stock and I don't see how these changes would affect whether or not custom icons are shown.
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|